package com.atguigu.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 陆小根
 * date: 2022/05/03
 * Description:
 */
@Controller
public class TestController {

  @RequestMapping("/**/testInterceptor") // ant风格 **表示一层或多层目录
  public String testInterceptor() {
    return "success";
  }

  @RequestMapping("/testExceptionHandler")
  public String testExceptionHandler() {
    System.out.println(1 / 0);
    return "success";
  }

}
